package com.cool.cloud.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: BGWork
 * @Description: 后台任务
 * @author: laijunji
 * @date 2020/2/10 21:40
 * @Version: 1.0
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Accessors(chain = true)
public class BGWork implements Serializable {
    /**
     * 主键
     */
    private Integer pk;
    /**
     * 下载url
     */
    private String dlUrl;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 执行时间
     */
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date sheduleTime;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 创建用户id
     */
    private Integer createUserid;
}
